﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2.Controls
{
    public partial class EditConnectionStringFileUserControl : UserControl
    {
        public EditConnectionStringFileUserControl()
        {
            InitializeComponent();
            serverConnectionStringsRichTextBox.LoadFile("serverConnection.txt", RichTextBoxStreamType.PlainText);
        }

        SQLConnection sqlConnection = new SQLConnection();
        WebConfigParser webConfigParser = new WebConfigParser();
        List<string> serverConnectionStringList = new List<string>();
        List<string> databasesList = new List<string>();

        private void saveServerConnectionString_Click(object sender, EventArgs e)
        {
            serverConnectionStringsRichTextBox.SaveFile("serverConnection.txt", RichTextBoxStreamType.PlainText);
        }

        private void cancelServerConnectionString_Click(object sender, EventArgs e)
        {
            serverConnectionStringEditPanel.Visible = false;
        }
    }
}
